package com.lhgray.sglhome.domain.usecase

import com.freightoa.foundation.net.bean.SGLResponse
import com.freightoa.foundation.presentation.domain.BaseUseCase
import com.lhgray.sglhome.domain.model.WarehouseBean
import com.lhgray.sglhome.data.repository.WarehouseRepository
import javax.inject.Inject

class WarehousePostUseCase @Inject constructor(private val warehouseRepository: WarehouseRepository) :
    BaseUseCase() {
    suspend operator fun invoke(warehouseBean: WarehouseBean): Result<SGLResponse<String>?> {
        return handleSuccessDataTask(warehouseRepository.postWarehouseJob(warehouseBean))
    }
}